'use strict'
let buildType = process.argv.slice(2)[0] || 'prod'
buildType = buildType == '--inline' ? 'dev' : buildType ;

console.log('---------------- building '+buildType+ ' 环境 ------------------' )

var domain = {
	dev: {
		API_1: '"/api"',
  	API_2: '"/api"',
  	API_3: '"/api"',
	},
	test: {
    API_1: '"/"', //test-user
    API_2: '"/"', //test-web
    API_3: '"/"' //test-voice
  },
	prod: {
		API_1: '"/api"',//online-user
  	API_2: '"/api"',//online-web
  	API_3: '"/api"',//online-voice
	}
}

module.exports = {
	NODE_ENV: '"production"',
  JOSH_ENV: '"' + buildType + '"',
  API_1: domain[buildType].API_1,
	API_2: domain[buildType].API_2,
	API_3: domain[buildType].API_3,
}
